﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true"
    CodeBehind="AdminUsers.aspx.cs" Inherits="EHTSaleManager.UIAdmin.AdminUsers" %>

<%@ Register Src="~/UIAdmin/Control/PaggingControl.ascx" TagName="PaggingControl"
    TagPrefix="EHT" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        <asp:Label ID="lbAdminUser" runat="server" Text="Bruker Leder"></asp:Label>
    </h1>
    <asp:Repeater ID="rpUsers" runat="server">
        <HeaderTemplate>
            <table cellspacing="0" cellpadding="0" class="data-table">
                <thead>
                    <tr>
                        <th class="actions edit">
                            Edit
                        </th>
                        <th class="actions delete">
                            Slett
                        </th>
                        <th>
                            Brukernavn
                        </th>
                        <th>
                            E-Post
                        </th>
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td class="actions edit">
                    <a href='AdminUser.aspx?UserName=<%#Eval("UserName")%>'>
                        <img alt="Edit" src="/Styles/Edit.png"></a>
                </td>
                <td class="actions delete">
                    <a href='AdminUserComfirmDelete.aspx?UserName=<%#Eval("UserName")%>'>
                        <img alt="Delete" src="/Styles/Delete.png"></a>
                </td>
                <th>
                    <%#Eval("UserName")%>
                </th>
                <td>
                    <%#Eval("Email") %>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody> </table>
        </FooterTemplate>
    </asp:Repeater>
    <p>
        <EHT:PaggingControl ID="PaggingControl1" runat="server" PageURL="AdminOrders.aspx"
            PageSize="10" />
    </p>
    <p class="submitButton">
        <asp:Button ID="btnAdd" runat="server" Text="Legg Bruker" OnClick="btnAdd_Click" />
    </p>
</asp:Content>
